<?php

//define('ADSERVER_APPLICATION_ID',				1);
define('KEYWORDS_APPLICATION_ID',				2);

// Common Icons
define('IMAGE_NAME_DETAIL',						'search_small.png');
define('IMAGE_NAME_SAVE',						'save_small.png');
define('IMAGE_NAME_HOME_SMALL',					'home_small.png');
define('IMAGE_NAME_EDIT_SMALL', 				'edit_small.png');
define('IMAGE_NAME_EDIT_DISABLED', 				'edit_small_disabled.png');
define('IMAGE_NAME_EDIT_NOT', 					'none_modifier_small.png');
define('IMAGE_NAME_DELETE_SMALL',				'delete_small.png');
define('IMAGE_NAME_CONFIG_SMALL',				'configure_small.png');
define('IMAGE_NAME_DELETE_NOT',					'delete_not_small.png');
define('IMAGE_NAME_DELETE',						'delete_small.png');
define('IMAGE_NAME_MORE', 						'add_small.png');
define('IMAGE_NAME_FOLDER',						'folder.png');
define('IMAGE_NAME_CALENDAR_MEDIUM',			'calendar.png');
define('IMAGE_NAME_CALENDAR_SMALL',				'calendar_small.png');
define('IMAGE_NAME_REDO_SMALL',					'redo.png');
define('IMAGE_NAME_PROGRESS_SMALL',				'refresh_small.png');
define('IMAGE_NAME_RESOLVE_SMALL',				'configure_small.png');
define('IMAGE_NAME_CLOSE_SMALL',				'flag_small.png');
define('IMAGE_NAME_MAIL_UNREAD_SMALL',			'mail_unread_small.png');
define('IMAGE_NAME_MAIL_READ_SMALL',			'mail_read_small.png');
define('IMAGE_NAME_READ_SMALL',					'read_small.png');
define('IMAGE_NAME_MARK_UNREAD_SMALL',			'mark_unread_small.png');
define('IMAGE_NAME_SEND_MESSAGE_SMALL',			'send_mail_small.png');
define('IMAGE_NAME_SENT_MESSAGE_SMALL',			'sent_small.png');
define('IMAGE_NAME_RECEIVED_MESSAGE_SMALL',		'received_small.png');
define('IMAGE_MISSING',			 			'no_image_'.APP_DEFAULT_LANGUAGE.'.png');
define('IMAGE_UP',							  'up.png');
define('IMAGE_DOWN',							'down.png');
define('IMAGE_FLAG_ENG',			 			'flag_eng.png');
define('IMAGE_FLAG_FRA',			 			'flag_fra.png');
define('IMAGE_IN_USED',							'ads_done_small.png');
define('IMAGE_NOT_IN_USED',						'ads_small.png');
define('IMAGE_MARK_FEATURED',					'object_small.png');
define('IMAGE_UNMARK_FEATURED',					'object_add.png');
define('IMAGE_ACCEPTED_SMALL',					'bookmark_small.png');

//*********************************************************
// Module Icons
//*********************************************************

define('IMAGE_NAME_BLOCK',					  'logos.png');

//CAMPAGNE
define('IMAGE_NAME_CAMPAGNE', 					'ads.png');
define('IMAGE_NAME_CAMPAGNE_SMALL', 			'ads_small.png');
define('IMAGE_NAME_CAMPAGNE_ADD_SMALL', 		'ads_add_small.png');

//AJUSTEMENT TECHNIQUE
define('IMAGE_NAME_HTC_REGIE_LOGO',				'logos.png');
define('IMAGE_NAME_MINUS_SMALL', 				'minus_small.png');
define('_IMAGE_SUIVANT',						'suivant');
define('_IMAGE_PRECEDENT',						'precedent');

//GROUPE
define('IMAGE_NAME_GROUP_SMALL',				'object_small.png');
define('IMAGE_NAME_GROUP',						'object.png');
define('IMAGE_NAME_OBJECT_ADD',					'object_add.png');

//EMPLACEMENT
define('IMAGE_NAME_EMPLACEMENT_SMALL',			'apps_small.png');
define('IMAGE_NAME_EMPLACEMENT_ADULTE_SMALL',	'apps_adult_small.png');
define('IMAGE_NAME_EMPLACEMENT',				'apps.png');
define('IMAGE_NAME_APPS_ADD',					'apps_add.png');

define('ACT_ON_EMPLACEMENT_FORMAT_COMPATIBLE',				'10');
define('ACT_ON_EMPLACEMENT_FORMAT',			 				'20');
define('ACT_ON_EMPLACEMENT_VISUAL',			 				'30');
define('ACT_ON_PROVIDER',									'40');
define('ACT_ON_COUNTRY_PERIOD',								'50');


//AUCTION
define('IMAGE_NAME_AUCTION',   					'auction.png');
define('IMAGE_NAME_AUCTION_SMALL',   			'auction_small.png');

//auction filter
define('AUCTION_DISPLAY_ALL',	0);
define('AUCTION_NON_ACTIVE',  	-1);
define('AUCTION_ACTIVE',  		1);

//INVENTORY
define('IMAGE_NAME_INVENTORY',					'inven.png') ;
define('IMAGE_NAME_INVENTORY_SMALL',			'inven_small.png') ;
define('IMAGE_NAME_INVENTORY_ADD',				'inven_add.png');

//FORMAT
define('IMAGE_NAME_FORMAT_PUBLICITE_SMALL',		'preferences_small.png');
define('IMAGE_NAME_FORMAT_PUBLICITE',			'preferences.png');

// THEMATIC
define('IMAGE_THEME',						'theme.png');
define('IMAGE_THEME_ADD',					'theme_add.png');

//PLANNING
define('IMAGE_PLANNING_SMALL', 					'large_icons_small');

//CHIFFRE AFFAIRE
define('IMAGE_NAME_CA', 						'money.png');

//ESTIMATION DU TRAFFIC
define('IMAGE_NAME_FLAG',						'flag.png');
define('IMAGE_NAME_FLAG_SMALL',					'flag_small.png');
define('IMAGE_NAME_CALCULATOR_SMALL',			'calculator_small.png');
define('IMAGE_NAME_CALCULATOR',					'calculator.png');

//UTILISATEUR
define('IMAGE_NAME_USER',						'user.png');
define('IMAGE_NAME_USER_ADD',					'user_add.png');
define('IMAGE_NAME_USERS_SMALL',				'users_small.png');
define('IMAGE_NAME_USER_SMALL',					'user_small.png');
define('IMAGE_NAME_USERS_ADD',					'users_add.png');
define('IMAGE_NAME_ADMIN_ADD',					'admin_add.png');
define('IMAGE_NAME_ADMIN_SMALL',				'admin_small.png');
define('IMAGE_NAME_ADMIN_UP_SMALL',				'admin_up_small.png');
define('IMAGE_NAME_KEY_SMALL', 					'key_small.png');
define('IMAGE_NAME_KEY', 						'key.png');
define('_IMAGE_MODIFIER',						'edit');
define('_IMAGE_CO_MODIFIER',					'search');
define('_IMAGE_SUPPRIMER',						'delete');
define('_IMAGE_DELETE',							'delete');
define('IMAGE_DISABLED_SMALL',	 			'pause_small.png');
define('IMAGE_ENABLED_SMALL',	 			'resume_small.png');

//Images
define('IMAGE_NAME_REGIE_SMALL',				'regie_small.png');
define('IMAGE_NAME_REGIE_ADD',					'regie_add.png');
define('IMAGE_NAME_EXCEL',						'excel.png');
define('IMAGE_NAME_EDIT',						'edit.png');
define('IMAGE_NAME_CONFIG_REVERTED_SMALL',		'configure_reverted_small.png');
define('IMAGE_NAME_PARAMETER',					'parameter.png');
define('IMAGE_NAME_PARAMETER_SMALL',			'parameter_small.png');
define('IMAGE_NAME_HISTORY', 					'history.png');
define('IMAGE_NAME_HISTORY_SMALL', 				'history_small.png');
define('IMAGE_NAME_REPORTING',					'chart.png');
define('IMAGE_NAME_REPORTING_SMALL',			'chart_small.png');
define('IMAGE_NAME_FAX_SMALL',					'fax_small.png');
define('IMAGE_NAME_ZOOM_IN_SMALL',				'zoom_in_small.png');
define('IMAGE_NAME_DONE_SMALL',					'done_small.png');
define('IMAGE_NAME_TECH_DATA',					'tech_data.png');
define('IMAGE_NAME_TECH_DATA_SMALL',			'tech_data_small.png');
define('IMAGE_NAME_TECH_DATA_TEMPLATE',			'td_templates.png');
define('IMAGE_NAME_TECH_DATA_TEMPLATE_SMALL',	'td_templates_small.png');
define('IMAGE_NAME_DEMAND_SMALL',				'demand_small.png');
define('IMAGE_NAME_DEMAND_ADD_SMALL', 			'ads_add_small.png');
define('IMAGE_NAME_STOP_SMALL',		 			'stop_small.png');
define('IMAGE_NAME_PAUSE_SMALL',	 			'pause_small.png');
define('IMAGE_NAME_RESUME_SMALL',	 			'resume_small.png');
define('IMAGE_NAME_FICHE',						'fiche.png');
define('IMAGE_NAME_FICHE_SMALL',				'fiche_small.png');
define('IMAGE_NAME_INFO2_SMALL',				'info2_small.png');
define('_IMAGE_DONE',							'done');
define('_IMAGE_SEARCH',							'search');
define('_IMAGE_SEARCH_BLOCKED',					'search_blocked');
define('_IMAGE_CALENDAR',						'calendar');
define('_IMAGE_CHAT',							'chat');
define('IMAGE_NAME_TRANSFORM',					'redo.png');
define('IMAGE_NAME_SPACER',						'spacer.jpg');
define('IMAGE_NAME_COEFFICIENT_MEDIUM',			'flag.png');

define('IMAGE_NAME_ATTACH_SMALL',				'attach.png');
define('IMAGE_NAME_REFUSE_SMALL',				'refuse.png');
define('IMAGE_NAME_PROPOSED_SMALL',             'proposed_small.png');
define('IMAGE_NAME_SIMULATION_SMALL',			'simulate_small.png');

define('IMAGE_NAME_COUNTRY',					'country.png');
define('IMAGE_NAME_COUNTRY_SMALL',				'country_small.png');
define('IMAGE_NAME_LANGUAGE',					'language.png');
define('IMAGE_NAME_LANGUAGE_SMALL',				'language_small.png');
define('IMAGE_NAME_CURRENCY',					'currency.png');
define('IMAGE_NAME_CURRENCY_SMALL',				'currency_small.png');
define('IMAGE_NAME_RELATE_DEAL_SMALL',			'relate_deal_small.png');
define('IMAGE_GOOGLE_MAP',                      'google-maps-icon.gif');



define('ACT_TRANSFORM', 						10);
define('ACT_RETRANSFORM', 						20);
define('ACT_DETAIL_EDIT',						80);

//image size
define('IMAGE_SIZE_SMALL', 						'small');
define('IMAGE_ICON_FILE_EXTENSION', 			'png');

// System constants
//define('ADMIN_HOME', 							APPLICATION_URL . '/home/list/');
define('NOMBRE_ITEM_HOME_PAGE',					3);
define('DEFAULT_PASSWORD_LENGTH',				6);

define('COPYRIGHT',								'Copyright 2008 &copy;');

// user information
define('ADMIN',								1);
define('EDITOR',							2);

//user management
define('ACCOUNT_TYPE_ANNONCEUR',				1);
define('ACCOUNT_TYPE_AGENT',					2);
define('ACCOUNT_TYPE_AGENT_ANNONCEUR',			10);
define('ACCOUNT_TYPE_AGENT_LOGIN',				12);
define('ACCOUNT_TYPE_REGIE',					3);
define('ACCOUNT_TYPE_SUPPORT',					4);
define('ACCOUNT_TYPE_USER_REPORTING',           5);

//form action const
define('ACT_EDIT',								10);
define('ACT_VALID_EDIT',						20);
define('ACT_DELETE',							30);
define('ACT_REFUSE',							60);
define('ACT_CANCEL',							65);
define('ACT_SIMULATE',							70);
define('ACT_CHANGE_MASTER',						90);
define('ACT_PAUSE',								110);
define('ACT_STOP',								120);
define('ACT_RESUME',							130);
define('ACT_SUBMIT',							160);
define('ACT_PROGRESS',							170);
define('ACT_ESTIMATE',							180);
define('ACT_ESTIMATE_SYS',						185);
define('ACT_PROPOSE',							190);
define('ACT_ACCEPT',							200);
define('ACT_ADJUST',							210);
define('ACT_REGENERATE',						220);
define('ACT_EXPORT',							230);
define('ACT_RESOLVE',							240);
define('ACT_CLOSE',                             250);
define('ACT_IMPORT',							260);
define('ACT_SIMULATION',						270);
define('ACT_PROPOSED',							280);
define('ACT_REFRESH',							290);

//paginer
define('PAGING_CSS_LINK_CLASS', 				'paging');
define('PAGING_PREV',							'&laquo; ');
define('PAGING_NEXT',							' &raquo;');
define('PAGING_SEPARATOR',						'&nbsp;-&nbsp;');
define('PAGING_CSS_CURRENT_PAGE',				'current_page');

//Format Publicite constraints
/*IMAGE_AVEC_ACCROCHE_TEASER*/
define('NBCHAR_IMAGE_AVEC_ACCROCHE',					22);
define('NBCHAR_IMAGE_AVEC_TEASER',					  24);
define('IMG1_IMAGE_AVEC_ACCROCHE_TEASER_REQ',				   'JPEG,65x65,5120'); //w1xh1|w2xh2|...,s1	 //reference : or -> '|'
define('IMG1_IMAGE_AVEC_ACCROCHE_TEASER_SIZE_DISPLAY',		  '65x65');

define('TARIFF_CPM',							1);
define('TARIFF_CPM_CLIC',						2);

$mode_tariff = array
(	0	=> '--Choisissez--',
	TARIFF_CPM 	=> 'CPM',
	TARIFF_CPM_CLIC 	=> 'CPC'
);

// FILE DIR
//define('FICHE_DIR',								APPLICATION_DIR.'/application/files/generated/fiches');
//define('TEMP_XML_FILE_DIR',                     APPLICATION_DIR.'/application/files/deal_schema/');

// IMAGE DIR
//define('CATEGORY_IMG_DIR', 						APPLICATION_DIR."/public/images/category");
//define('CATEGORY_IMG_URL', 						APPLICATION_URL."/public/images/category");
//define('PROVIDER_LOGO_DIR', 					APPLICATION_DIR."/public/images/provider");
//define('PROVIDER_LOGO_URL', 					APPLICATION_URL."/public/images/provider");
//define('DEAL_IMG_DIR', 							APPLICATION_DIR."/public/images/deals");
//define('DEAL_IMG_URL', 							APPLICATION_URL."/public/images/deals");
//define('DEVICE_MODEL_CSS_FILE', 				APPLICATION_DIR."/public/files/device_model");
//define('DEVICE_MODEL_CSS_FILE_URL', 				APPLICATION_URL."/public/files/device_model");

define('TOUT_PUBLIC', 							1);
define('CHAT_BLOG_IDO', 						2);
define('CHARME_SEXY', 							3);

//planning
define('_LB_PLANNING_MAX_NB_DAYS', 				14);

//Improve GUI coherency
define('SIZE_NAME',								20);
define('SIZE_POSITION',								20);
define('SIZE_COL_DESCRIPTION',					30);
define('SIZE_ROW_DESCRIPTION',					5);

define('USER_PROJECT_ACCESS_ALLOWED_VODAFONELIVE', 	1);
define('USER_PROJECT_ACCESS_ALLOWED_GALLERY', 		2);
define('USER_PROJECT_ACCESS_ALLOWED_FAST',		 	3);

define('SEND_LINK',								10);
define('CHANGE_PASSWORD',						20);

// parameter
define('PARAM_TYPE_NUMBER',                 1);
define('PARAM_TYPE_RATE_NUMBER',            2);
define('PARAM_TYPE_BOOLEAN',                3);
define('PARAM_TYPE_DATETIME',               4);
define('PARAM_TYPE_POSITIVE_NUMBER',        5);
define('PARAM_TYPE_LIST_QUERY',             6);
define('PARAM_TYPE_LIST_WEBSERVICE',        7);
define('PARAM_TYPE_TEXT',                   8);
define('PARAM_TYPE_STRING_SELECTION',       9);
define('PARAM_TYPE_FLOAT_WITH_3_DECIMAL',	10);
define('PARAM_TYPE_FLOAT_WITH_2_DECIMAL',	11);
define('PARAM_TYPE_TEXT_AREA_MANY_LINE', 12);
define('PARAM_TYPE_INTEGER_FROM_1_TO_99', '13');
define('PARAM_TYPE_INTEGER_FROM_1_TO_999', '14');
define('TECHNICAL_DATA_MANUAL_ENTRY', 15);

// PARAMETER types
define('PARAMETER_TYPE_SYSTEM',				1);
define('PARAMETER_TYPE_DISPLAY',            2);
define('PARAMETER_TYPE_TARGETING',			3);
define('PARAMETER_TYPE_ALERTS',				4);

// data input constrains
define('MAX_LENGTH_CODE', 						20);
define('MAX_LENGTH_USER_CODE', 					3);
define('MAX_LENGTH_NAME', 						255);
define('MAX_LENGTH_DESC', 						512);
define('MAX_LENGTH_PASSWORD', 					32);
define('MIN_LENGTH_PASSWORD', 					6);
define('MAX_LENGTH_DEVICE_MODEL_CODE',			50);
define('MAX_LENGTH_MOBILE_OPERATOR_NAME', 		100);
define('MAX_LENGTH_SEGMENT_CODE',               50);

// css color
define('SELECTED_RESERVATION_HOUR_COLOR', 		'#008000');
define('REQUIRE_FIELD_COLOR', 					'#FF0000');

define('_LB_REQUIRE_FIELD', 					'<span style="color:'.REQUIRE_FIELD_COLOR.';">*</span>');

// error number constant
define('ERR_IS_NOT_BELONG_TO_OBJECT', 			10);

// FIXED or NOT FIXED
define('FIXED_TYPE',							1);

// SUPPORT and REGIE
define('REGIE',									1);
define('SUPPORT',								2);

//AMCHART
define('MIN_VALUE_NOT_SHOW_IN_CHART',	0);

////define('AMCHART_PATH', APPLICATION_URL.'/scripts/amchart/');
//define('AMCHART_COLUMN_PATH', APPLICATION_URL.'/scripts/amchart/column/');
//define('AMCHART_LINE_PATH', APPLICATION_URL.'/scripts/amchart/line/');
//define('AMCHART_PIE_PATH', APPLICATION_URL.'/scripts/amchart/pie/');
//define('AMCHART_EXPORT_IMAGE_FILE', APPLICATION_URL.'/scripts/amchart/export.php');

define('CHART_HEIGHT', 300);
define('CHART_WIDTH', 455);
define('CHART_FULL_WIDTH', 927);
define('LEGEND_HEIGHT', 20);
define('CHART_CENTER_WIDTH', 600);
// IMAGE URL
//define('RESV_DEAL_TEMPLATE_IMG_URL',			APPLICATION_URL.'/images/deals');
//define('RESV_CATEGORY_TEMPLATE_IMG_URL',		APPLICATION_URL.'/images/category');
//define('RESV_PROVIDER_TEMPLATE_IMG_URL',		APPLICATION_URL.'/images/provider');

define('IS_NOT_DELETED', '0');
define('IS_DELETED', '1');
define('IMAGE_MAX_WIDTH_DISPLAY',		350);
define('IMAGE_MAX_HEIGHT_DISPLAY',		350);
define('LOGO_MAX_WIDTH_DISPLAY',		200);
define('LOGO_MAX_HEIGHT_DISPLAY',		100);

define('DEAL_PROVIDER_STATUS_CREATED',      '0');
define('DEAL_PROVIDER_STATUS_CONNECTED',    '1');

define('ACT_ON_CATEGORY', 10);
define('ACT_ON_COUNTRY', 20);
define('ACT_ON_MCC', 30);
define('ACT_ON_CONNECTOR', 40);
define('ACT_ON_REFERENCE', 50);

// DEAL DETAIL
define('URL_REDIRECT_LOCATION_ON_GOOGLE_MAP', 'http://maps.google.com/maps?q=');

// LOCATION SYNCHRONIZE STATUS
define('LOCATION_STATUS_TO_INSERT',0);
define('LOCATION_STATUS_TO_DELETE',1);
define('LOCATION_STATUS_TO_DELETING',2);
define('LOCATION_STATUS_SYNCHRONIZING',3);
define('LOCATION_STATUS_SYNCHRONIZED',4);
define('LOCATION_STATUS_UPDATED',5);

// SEGMENT
define('CONST_IN_USED',1);
define('MAX_SEGMENT_VALUE_PER_SEGMENT',         5);

//COUNTRY MNO
define('MAX_LENGTH_MCC',3);

define('IMPORT_FILE_SEPARATOR', ';');
define('IMPORT_FILE_ENCLOSURE', '"');
define('IMPORT_FILE_ESCAPOR', '');
define('MAX_DECIMAL_NUMBER_OF_TIMEOUT', 3);

define('CAMPAIGN_TYPE_CPC',             1);
define('CAMPAIGN_TYPE_CPM',             2);
define('CAMPAIGN_TYPE_BEST_PURCHASE',   3);

define('STATUS_CREATION',        10);
define('STATUS_SUBMIT',          20);
define('STATUS_ACCEPT',          30);
define('STATUS_REJECT',          40);
define('STATUS_ON_GOING',        50);
define('STATUS_PUBLISHED',       60);
define('STATUS_IN_SIMULATION',   70);
define('STATUS_SIMULATING',      80);
define('STATUS_SIMULATED',       90);
define('STATUS_PROPOSED',        100);
define('STATUS_PAUSE',           110);
define('STATUS_RESUME',          120);
define('STATUS_ACCEPT_ERROR',    10);
define('CAMPAIGN_TYPE_CPM_SOV',  1);
define('CAMPAIGN_TYPE_CPM_VIEW', 2);

define('ERR_STYLE', '<span style="color:#FF0000">[ERROR]</span>');

// SYNCHRONIZE STATUS
define('STATUS_TO_SYNCHRONIZE',0);
define('STATUS_SYNCHRONIZING',1);
define('STATUS_SYNCHRONIZED',2);
// SYNCHRONIZE STATUS FOR DELETING
define('STATUS_TO_DELETE',1);
define('STATUS_DELETING',2);
define('STATUS_DELETED',3);

define('IS_VALIDATED', 1);
define('IS_NOT_VALIDATED', 0);

define('ACT_ON_FRONT_COUNTRY', 10);
define('ACT_ON_FRONT_DB', 20);
// MOBILE OPERATOR
//status for mobile operator
define('MOBILE_STATUS_ENABLE',      '0');
define('MOBILE_STATUS_DISABLE',    '1');
define('ACT_MOBILE_ON_PROVIDER',    '10');
define('ACT_MOBILE_ON_NETWORK',     '20');
define('ACT_MOBILE_ON_ROMVERSION',     '30');

//PROVIDER _CONNECTOR
define('CONNECTOR_GENERIC',              '1');//generic
define('CONNECTOR_SPECIFIC',             '2');//specific

define('MAX_LENGTH_MOBILE_NETWORK_CODE', 					3);
define('MIN_LENGTH_MOBILE_NETWORK_CODE', 					2);



//PROVIDER _CONNECTOR STATUS
define('CONNECTOR_STATUS_STOP',              '0');//stop
define('CONNECTOR_STATUS_RUNNING',             '1');//running

// CAMPAIGN PUBLISH TYPE
define('CAMPAIGN_PUBLISH_TYPE_ALL', 1);
define('CAMPAIGN_PUBLISH_TYPE_FEATURED', 2);
define('CAMPAIGN_PUBLISH_TYPE_SPECIFIC', 3);

define('MAX_LATITUDE', 90);
define('MIN_LATITUDE', -90);
define('MAX_LONGITUDE', 180);
define('MIN_LONGITUDE', -180);

//EMPLACEMENT PUBLISH TYPE
define('EMPLACEMENT_BID_CPC', 1);
define('EMPLACEMENT_CPM_PDV', 2);
define('EMPLACEMENT_BEST_PURCHASE', 3);


define('ACT_ON_ESTIMATION',       '10');

//TYPE URL TEMPLATE
define('URL_TEMPLATE_TYPE_DONT_CHANGE',           '1');
define('URL_TEMPLATE_TYPE_REPLACE_BY_MO',         '2');
define('URL_TEMPLATE_TYPE_REPLACE_PARAM_BY_MO',   '3');
define('URL_TEMPLATE_TYPE_ADD_MO_END',            '4');
define('URL_TEMPLATE_TYPE_ADD_MO_AS_PARAM_END',   '5');

define('GOOGLE_GEOCODING_API_SERVICE_URL',	'http://maps.google.com/maps/api/geocode/json?');
define("STATUS_CITY_TO_VALIDATE",       1);
define("STATUS_CITY_VALIDATED",         0);

// Zoom from 1 to 19.
define('CITY_ZOOM',  12);

// Default location: Paris
define('CITY_CENTER_LATTITUDE',  			'48.854596');
define('CITY_CENTER_LANGTITUDE',  			'2.345581');

define('BOTTOM_RIGHT_LAT',					-90);
define('BOTTOM_RIGHT_LONG',					-180);
define('TOP_LEFT_LAT',						90);
define('TOP_LEFT_LONG',						180);

define('LOG_FILE_URL', APPLICATION_URL.'/public/files/deal_log');
define('ERROR_CODE_CANNOT_LOAD_PARAMETERS',			106);

define('WIDTH_LOGO_PROVIDER'    ,130);
define('HEIGHT_LOGO_PROVIDER'    ,48);
define('WIDTH_LOGO_PROVIDER_THUMB'    ,65);//65x24
define('HEIGHT_LOGO_PROVIDER_THUMB'    ,24);

// type Web service
define('WS_GET_DEAL',                   1);
define('WS_GET_FEATUTED_DEAL',          2);
define('WS_GET_PREFERED_DEAL',          3);

// type client reporting
define('TYPE_NUMBER_CLIENT',                                    0);
define('TYPE_NUMBER_CLIENT_ACTIVE',                             1);
define('TYPE_NUMBER_CLIENT_NEW',                                2);
define('TYPE_NUMBER_CLIENT_LOST',                               3);
define('TYPE_NUMBER_CLIENT_PREMIUM',                            4);
define('TYPE_NUMBER_CLIENT_PREMIUM_REGULAR',                    5);
define('TYPE_NUMBER_CLIENT_PREFERENCES',                        6);
define('TYPE_NUMBER_CLIENT_BY_CATEGORY',                        7);
define('TYPE_NUMBER_CLIENT_BY_COUNTRY',                         8);
define('TYPE_NUMBER_CLIENT_ACTIVE_BY_COUNTRY',                  9);
define('TYPE_NUMBER_CLIENT_NEW_BY_COUNTRY',                     10);
define('TYPE_NUMBER_CLIENT_LOST_BY_COUNTRY',                    11);
define('TYPE_NUMBER_CLIENT_PREMIUM_BY_COUNTRY',                 12);
define('TYPE_NUMBER_CLIENT_PREMIUM_REGULAR_BY_COUNTRY',         13);
define('TYPE_NUMBER_CLIENT_PREFERENCES_BY_COUNTRY',             14);
define('TYPE_NUMBER_CLIENT_BY_CATEGORY_BY_COUNTRY',             15);
define('TYPE_NUMBER_CLIENT_BY_MOBILE_OPERATOR',                 16);
define('TYPE_NUMBER_CLIENT_ACTIVE_BY_MOBILE_OPERATOR',          17);
define('TYPE_NUMBER_CLIENT_NEW_BY_MOBILE_OPERATOR',             18);
define('TYPE_NUMBER_CLIENT_LOST_BY_MOBILE_OPERATOR',            19);
define('TYPE_NUMBER_CLIENT_PREMIUM_BY_MOBILE_OPERATOR',         20);
define('TYPE_NUMBER_CLIENT_PREMIUM_REGULAR_BY_MOBILE_OPERATOR', 21);
define('TYPE_NUMBER_CLIENT_PREFERENCES_BY_MOBILE_OPERATOR',     22);
define('TYPE_NUMBER_CLIENT_BY_CATEGORY_BY_MOBILE_OPERATOR',     23);
define('TYPE_NUMBER_CLIENT_BY_DEAL_PROVIDER',                   24);
define('TYPE_NUMBER_CLIENT_ACTIVE_BY_DEAL_PROVIDER',            25);
define('TYPE_NUMBER_CLIENT_NEW_BY_DEAL_PROVIDER',               26);
define('TYPE_NUMBER_CLIENT_LOST_BY_DEAL_PROVIDER',              27);
define('TYPE_NUMBER_CLIENT_PREMIUM_BY_DEAL_PROVIDER',           28);
define('TYPE_NUMBER_CLIENT_PREMIUM_REGULAR_BY_DEAL_PROVIDER',   29);
define('TYPE_NUMBER_CLIENT_PREFERENCES_BY_DEAL_PROVIDER',       30);
define('TYPE_NUMBER_CLIENT_BY_CATEGORY_BY_DEAL_PROVIDER',       31);

define('TYPE_NUMBER_CLIENT_BY_DEVICE_MODEL',                   32);
define('TYPE_NUMBER_CLIENT_ACTIVE_BY_DEVICE_MODEL',            33);
define('TYPE_NUMBER_CLIENT_NEW_BY_DEVICE_MODEL',               34);
define('TYPE_NUMBER_CLIENT_LOST_BY_DEVICE_MODEL',              35);
define('TYPE_NUMBER_CLIENT_PREMIUM_BY_DEVICE_MODEL',           36);
define('TYPE_NUMBER_CLIENT_PREMIUM_REGULAR_BY_DEVICE_MODEL',   37);
define('TYPE_NUMBER_CLIENT_PREFERENCES_BY_DEVICE_MODEL',       38);
define('TYPE_NUMBER_CLIENT_BY_CATEGORY_BY_DEVICE_MODEL',       39);

//NUMBER_DAYS_FOR_VIEW_REPORTING
define('NUMBER_DAYS_FOR_VIEW_REPORTING',       7);

// FOOTER HTC VERSION
define('HTC_DEALS_VERSION',       '1.2.7');

define('TYPE_OF_REVENUE_NEW_USER_HTC_BOUNTY','NEW_USER_HTC_BOUNTY');
define('TYPE_OF_REVENUE_NEW_USER_HTC_REV','NEW_USER_HTC_REV');
define('TYPE_OF_REVENUE_USER_HTC_BOUNTY','USER_HTC_BOUNTY');
define('TYPE_OF_REVENUE_USER_HTC_REV','USER_HTC_REV');
define('TYPE_OF_REVENUE_NEW_USER_WEB_BOUNTY','NEW_USER_WEB_BOUNTY');
define('TYPE_OF_REVENUE_NEW_USER_WEB_REV','NEW_USER_WEB_REV');
define('TYPE_OF_REVENUE_ADVERTISING','ADVERTISING');
// status for  Financial Reporting
define('STATUS_FINANCIAL_DETAIL','DETAIL');
define('STATUS_FINANCIAL_SUBTOTAL1','SUBTOTAL1');
define('STATUS_FINANCIAL_SUBTOTAL2','SUBTOTAL2');
define('STATUS_FINANCIAL_SUBTOTAL3','SUBTOTAL3');
define('STATUS_FINANCIAL_TOTAL','TOTAL');

define('FINANCIAL_REPORTING_PROVIDER_BOUNTY_TYPE_1',1);
define('FINANCIAL_REPORTING_PROVIDER_BOUNTY_TYPE_2',2);
define('REF_DEFAULT',                   '1');
define('REF_DEFAULT_WITH_PREFIX',       '2');
define('REF_MO_REFERENCE',              '3');

define('PREFIX_SQUARE_DEAL_IMAGE', 'square_');
define('FRONT_DEFAULT_LANGUAGE', 'en');

// POPULAR DEAL STATUS
define('STATUS_POPULAR_UPDATED',0);
define('STATUS_POPULAR_SYNCHRONIZING',1);
define('STATUS_POPULAR_SYNCHRONIZED',2);


// SHARE NETWORK
//status for share network
define('ACT_SHARE_PACKAGE_ON_NETWORK',     '10');
define('ACT_DELETE_SHARE_PACKAGE_UNMAP',     '500');

// VALIDATE DEAL STATUS
define('STATUS_DEAL_VALIDATED',1);
define('STATUS_DEAL_TO_CHECK',2);
define('STATUS_DEAL_BLOCKED',3);

// Yelp keys here
define('INTERVAL_EXPIRATION_DATE', '3');
define('YELP_CONSUMER_KEY', 'N9nJPZaKevkRMygV_D5mig');
define('YELP_CONSUMER_SECRET', 'RsElHAXrsBsfK8MvOSG1SHuCWzo');
define('YELP_TOKEN', 'xT0DdHwDha7SQ0A8VNeXXcfM5U6_MaP_');
define('YELP_TOKEN_SECRET', 'VDfp1fpp94WxdHS2Ntc_OBFPiRY');

define('PARAM_TYPE_TEXTBOX', 1);
define('PARAM_TYPE_CHECKBOX', 2);
define('PARAM_TYPE_RADIOBUTTON', 3);
define('PARAM_TYPE_SELECTBOX', 4);
define('PARAM_TYPE_MULTISELECTBOX', 5);
define('PARAM_TYPE_TEXTAREA', 6);